package com.xxx.pojo;

// default package

import java.sql.Timestamp;
import java.util.Date;

/**
 * Car entity. @author MyEclipse Persistence Tools
 */

public class Car extends ShopInfo {

	// Fields
	
	private Long id;
	private String name;
	private String imgurl;
	private String phoneNo;
	private String email;
	private String webUrl;
	private String photosurl;
	private Integer typeId;
	private Timestamp createTime;
	private Long userId;
	private String areaName;
	private String addressname;
	private Float lng;
	private Float lat;
	private String intro;
	private String cartType;
	private String brand;
	private String carDealer;
	private Double price;
	private String contacter;
	private String street;
	
	private String model;
	private String displacement;
	private String gearbox;
	private String color;
	private Integer mileage;
	private String regplace;
	private Integer changeCount;
	private String configDes;
	private Timestamp examined;
	private Timestamp insuranceExpires;
	
	//用于查询
	private Double price1;
	private Double price2;
	
	// Constructors

	/** default constructor */
	public Car() {
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getTypeId() {
		return this.typeId;
	}

	public void setTypeId(Integer typeId) {
		this.typeId = typeId;
	}

	public String getAddressname() {
		return this.addressname;
	}

	public void setAddressname(String addressname) {
		this.addressname = addressname;
	}

	public Float getLng() {
		return this.lng;
	}

	public void setLng(Float lng) {
		this.lng = lng;
	}

	public Float getLat() {
		return this.lat;
	}

	public void setLat(Float lat) {
		this.lat = lat;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getIntro() {
		return this.intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getPhotosurl() {
		return this.photosurl;
	}

	public void setPhotosurl(String photosurl) {
		this.photosurl = photosurl;
	}

	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getImgurl() {
		return this.imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWebUrl() {
		return this.webUrl;
	}

	public void setWebUrl(String webUrl) {
		this.webUrl = webUrl;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getCartType() {
		return this.cartType;
	}

	public void setCartType(String cartType) {
		this.cartType = cartType;
	}

	public String getBrand() {
		return this.brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getCarDealer() {
		return this.carDealer;
	}

	public void setCarDealer(String carDealer) {
		this.carDealer = carDealer;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getContacter() {
		return this.contacter;
	}

	public void setContacter(String contacter) {
		this.contacter = contacter;
	}

	public String getAreaName() {
		return this.areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}
	
	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getDisplacement() {
		return this.displacement;
	}

	public void setDisplacement(String displacement) {
		this.displacement = displacement;
	}

	public String getGearbox() {
		return this.gearbox;
	}

	public void setGearbox(String gearbox) {
		this.gearbox = gearbox;
	}

	public String getColor() {
		return this.color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Integer getMileage() {
		return this.mileage;
	}

	public void setMileage(Integer mileage) {
		this.mileage = mileage;
	}

	public String getRegplace() {
		return this.regplace;
	}

	public void setRegplace(String regplace) {
		this.regplace = regplace;
	}

	public Integer getChangeCount() {
		return this.changeCount;
	}

	public void setChangeCount(Integer changeCount) {
		this.changeCount = changeCount;
	}

	public String getConfigDes() {
		return this.configDes;
	}

	public void setConfigDes(String configDes) {
		this.configDes = configDes;
	}
	
	public Timestamp getExamined() {
		return examined;
	}

	public void setExamined(Timestamp examined) {
		this.examined = examined;
	}

	public Timestamp getInsuranceExpires() {
		return insuranceExpires;
	}

	public void setInsuranceExpires(Timestamp insuranceExpires) {
		this.insuranceExpires = insuranceExpires;
	}

	public Double getPrice1() {
		return price1;
	}

	public void setPrice1(Double price1) {
		this.price1 = price1;
	}

	public Double getPrice2() {
		return price2;
	}

	public void setPrice2(Double price2) {
		this.price2 = price2;
	}
	
	/**
	 * 功能：清空查询数据
	 */
	public void clear(){
		this.id = null;
		this.typeId = null;
		this.name = null;
		this.setTuijian(-1);
		this.cartType = null;
		this.brand = null;
		this.carDealer = null;
		this.setStars(-1);
		this.price1 = null;
		this.price2 = null;
		this.price = null;
	}
}